package com.fyt.recover.order;

public class Students implements Comparable<Students> {
    private Integer age;
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
    @Override
    public int compareTo(Students o) {
        return this.age - o.age;
    }
}
